import platform = require('../../../../../platform/common/baseCommon');
import appClient = require('../../../../../platform/client/appClient');
import navbarTopMainForm = require('../../../../../platform/client/mainForm/navbarTop/navbarTopMainForm');

/** 应用程序配置 */
export let defaultObject = new appClient.clientApplication();

let mainForm = new navbarTopMainForm.navbarTopMainForm();

syncRequire('./platform/client/controls');
mainForm.navPages = [
    // {
    //     $type: "platform.client.tabPage",
    //     title: "登录",
    //     icon: "user",
    //     iconClass: "glyphicon glyphicon-user",
    //     view: new platform.lazyFactory("project/test/config/client/interactivePlatformOfBankTax/userinfo/loginViewConfig", "defaultObject"),
    //     viewStack: new appClient.viewStack()
    // },
    {
        $type: "platform.client.tabPage",
        title: "首页",
        icon: "user",
        iconClass: "glyphicon glyphicon-user",
        view: new platform.lazyFactory("project/test/config/client/interactivePlatformOfBankTax/userinfo/personalpageViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.dropdownTabPage",
        title: "纳税信用报告",
        viewStack: new appClient.viewStack(),
        navPages: [
            {
                $type: "platform.client.tabPage",
                id: "controlTest",
                title: "控件测试页面",
                icon: "send",
                iconClass: "glyphicon glyphicon-send",
                view: new platform.lazyFactory("project/test/config/client/test/testDemoConfig", "defaultObject")
            },
            {
                $type: "platform.client.tabPage",
                id: "echartTest",
                title: "EChart测试",
                icon: "home",
                iconClass: "glyphicon glyphicon-home",
                view: new platform.lazyFactory("project/test/config/client/smartReportApp/echartTestConfig", "defaultObject")
            },
            {
                $type: "platform.client.tabPage",
                id: "home",
                title: "虚开增值税发票风险排查",
                icon: "home",
                iconClass: "glyphicon glyphicon-home",
                view: new platform.lazyFactory("project/test/config/client/fsgsweb/report/xkzzsfpqyfxConfig", "defaultObject")
            }

        ]
    }
];
mainForm.title = "银税互动平台";
mainForm.iconPath = "project/test/config/client/interactivePlatformOfBankTax/images/logo.png";
mainForm.isContentFluid = false;
platform.fetchAddonProtoType(mainForm);
defaultObject.mainForm = mainForm;

defaultObject.serverLogger = new appClient.remoteFactory(platform.baseLogger, "remoteCall", "fileLogService");